package com.service;

import com.bean.Bumen;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
@FeignClient(value = "microservicecloud-bumen",fallbackFactory = BumenFallbackFactory.class)
public interface BumenService {
    @RequestMapping(path = "/bumen/addbumen")
    public boolean addBumen(Bumen bumen);

    @RequestMapping(path = "/bumen/list")
    public List<Bumen> getAll();

    @RequestMapping(path = "/bumen/getbumenbyid/{id}")
    public Bumen getBumenById(@PathVariable("id") Integer id);
}
